/**
 * 数组去重并放到Map中
 * @param concat1 需要放置的数组
 * @param calculateDirectly 需要放置的map集合
 *  返回影响的map
 */
function ArrayDeAndPutIntoMap(concat1,calculateDirectly){
    for (var i = 0; i < concat1.length; i++) {
        var element = concat1[i];
        //零售按照itemNbr + RetailType + Retail + effDate + expDate + Trait
        var key = "";
        if (element.retail !== undefined){
            key = element.itemNbrT + element.priceType + element.retail + element.effDate +element.expDate +element.priceTrait;
        }else {
            key = element.itemNbrT + element.priceType + element.cost + element.effDate +element.expDate +element.priceTrait;
        }
        if (!(calculateDirectly.containsKey(key))){
            calculateDirectly.put(key,element);
        }
    }
}
